package org.example.entity;


import lombok.*;

/**
 * @author zhaokuii11@163.com
 * @create 2021-12-07 9:32
 * @Description
 */

public class Employee {
    private Integer id;
    private String name;
    private Float salary;
    private String email;
    private Department dept;

    public Employee(String email,Float salary,  Department dept) {
        this.salary = salary;
        this.email = email;
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", email='" + email + '\'' +
                ", dept=" + dept +
                '}';
    }

    public Employee() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getSalary() {
        return salary;
    }

    public void setSalary(Float salary) {
        this.salary = salary;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Department getDept() {
        return dept;
    }

    public void setDept(Department dept) {
        this.dept = dept;
    }

    public Employee(Integer id, String name, Float salary, String email, Department dept) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.email = email;
        this.dept = dept;
    }
}
